package com.fuhe.chen.vendingmachine.alipay;

import lombok.Data;

/**
 * 支付宝支付二维码返回信息标准格式
 */
@Data
public class AliPayResponse {


    /**
     * alipay_trade_precreate_response : {"code":"10000","msg":"Success","out_trade_no":"FH20200525102221509445","qr_code":"https://qr.alipay.com/bax00842qt2dva0oivp6209d"}
     * sign : KxBgy88L9FatqNo+E+DR1YVTYFQwXv16WCAhi+NNpwTf9WOF+PY3S/4Z54K9GiT/dF6MTRiloPWdCRRZd0P8ZOAeCodDk7D2yDvAmURE5fmRzJrTDK/N7mvMtHkt//r+vDMQldgG3ZNuypyaZeg89TeEts4im3CI0ZIVrYwmWOEqGA3ItXjPU3xXSw9WnFXDyEcROzFlBQgHYDq+SAnbsCwVB9TOBTfVZvfjQwgQE/P+FrxJY4F2xkEE2xuVlySIUSEA8eIhSG66bb5VKd5wq5YY0TUe1uvfx9JHkg3cRpJyCV9iiZP/3DeF72FssxxQHwv/2AkGhMv5tBxiEBRWCg==
     */

    private AlipayTradePrecreateResponseBean alipay_trade_precreate_response;
    private String sign;

    public AlipayTradePrecreateResponseBean getAlipay_trade_precreate_response() {
        return alipay_trade_precreate_response;
    }

    public void setAlipay_trade_precreate_response(AlipayTradePrecreateResponseBean alipay_trade_precreate_response) {
        this.alipay_trade_precreate_response = alipay_trade_precreate_response;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public static class AlipayTradePrecreateResponseBean {
        /**
         * code : 10000
         * msg : Success
         * out_trade_no : FH20200525102221509445
         * qr_code : https://qr.alipay.com/bax00842qt2dva0oivp6209d
         */

        private String code;
        private String msg;
        private String out_trade_no;
        private String qr_code;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public String getOut_trade_no() {
            return out_trade_no;
        }

        public void setOut_trade_no(String out_trade_no) {
            this.out_trade_no = out_trade_no;
        }

        public String getQr_code() {
            return qr_code;
        }

        public void setQr_code(String qr_code) {
            this.qr_code = qr_code;
        }
    }
}
